package org.cst8277.ums.response;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class ResponseMessage {
    //错误码
    private boolean success;
    //错误消息
    private String message;
    public static final ResponseMessage SUCCESS = new ResponseMessage(true, "OK");

    public static final ResponseMessage buildFail(String message) {
        return new ResponseMessage(false, message);
    }
}
